home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20031118-20041115
/
000374_gandhishruti@gmail.com_Wed Sep 1 08:59:27 2004.msg
< prev
next >
Wrap
Internet Message Format
|
2004-11-14
|
2KB
Path: newsmaster.cc.columbia.edu!newsfeed1.nycmny01.us.to.verio.net!newspeer1.stngva01.us.to.verio.net!verio!newspeer1.nwr.nac.net!news.maxwell.syr.edu!postnews2.google.com!not-for-mail
From: gandhishruti@gmail.com (Shruti)
Newsgroups: comp.protocols.kermit.misc
Subject: Checking for
Date: 31 Aug 2004 14:45:57 -0700
Organization: http://groups.google.com
Lines: 43
Message-ID: <689dd88f.0408311345.474a3235@posting.google.com>
NNTP-Posting-Host: 63.76.214.3
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1093988758 28266 127.0.0.1 (31 Aug 2004 21:45:58 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 31 Aug 2004 21:45:58 +0000 (UTC)
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15139
Hi All,
I am getting files from a unix server to my machine running win2k
using modem dial out. My script is working fine except one small
thing. When I change the directory to where the files are supposed to
be, i want to check if the directory exists. If it does not then I
want to exit.
1. The "If Directory" command checks for the existence of the
directory on the
local machine not on the remote server. So that did not work.
2. I also tried "remote query" method to get the pwd, but it shows as
being
unimplemented.
3. "If fail" command also did not help.
I tried a few more things but nothing seems to be working. Below is
part of my script. After I do cd I want to check.
If any body has any ideas, please help.
Regards,
Shruti.
************************************************************************
output cd /mydirectory
;remote cd /mydirectory
xif fail {
set exit status 7
fopen /write \%c \m(logfile)
if fail exit
fwrite /line \%c \%d
if fail exit
fclose \%c
if fail exit
clear device
exit
}
output kermit\13 ; initialize kermit on host
output send *.txt\13 ; get files
receive
***************************************************************************